﻿<%@ Page Language="C#" MasterPageFile="~/APP/MasterPage_appCom.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="frmA_OrgTraineeInfoInput.aspx.cs" Inherits="APP_frmA_OrgTraineeInfoInput" Title="Untitled Page"  Culture="ja-JP" uiCulture="ja"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
実習実施機関
</asp:Content>



<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<style type="text/css">
    .hidden {
    display:none;
    }
    
    .GVFixedHeader {display:none}
    .gvHeader{
        background-color:Tan;
        font-weight:bold;    
        height:15px;
        padding-top:5px;  
    }
    .gvHeader .gvHeaderItem1{background-color:Tan;width:120px;float:left;height:inherit;text-align:center; vertical-align:middle}
    .gvHeader .gvHeaderItem2{background-color:Tan;width:60px;float:left;height:inherit;text-align:center; vertical-align:middle}
    .gvHeader .gvHeaderItem3{background-color:Tan;width:125px;float:left;height:inherit;text-align:center; vertical-align:middle}
    .gvHeader .gvHeaderItem4{background-color:Tan;width:74px;float:left;height:inherit;text-align:center; vertical-align:middle}
    .gvHeader .gvHeaderItem5{background-color:Tan;width:140px;float:left;height:inherit;text-align:center; vertical-align:middle}
    .gvHeader .gvHeaderItem6{background-color:Tan;width:156px;float:left;height:inherit;text-align:center; vertical-align:middle}
    
</style> 
 <script type="text/javascript" src="../js/jquery.min.js"></script>
 <script src="../js/jquery-1.4.1.min.js" type="text/javascript"></script>
 <script src="../js/jquery.jqpopup.min.js" type="text/javascript"></script>
 <script src="../js/jquery.bgiframe.min.js" type="text/javascript"></script>
 <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
 <script src="../js/jqDnR.min.js" type="text/javascript"></script>
 <script src="../js/jquery.maskedinput.js" type="text/javascript"></script>
<script type="text/javascript" src="../Js/jquery.alphanumeric.pack.js"></script>
<script src="../js/Validation.js" type="text/javascript"></script>
 <script src="../js/jquery.blockUI.js" type="text/javascript"></script>
    
 <script language="JavaScript" type="text/javascript">

function validatDate2(oSrc, args)// kiem tra ngay thang hien tai.
{
    args.IsValid = checkYearOld(args.Value, getNowDate(new Date()), 18, "<");
    
}

function CheckDatenow(oSrc, args)// kiem tra ngay thang hien tai.
{
    args.IsValid = checkYearOld(args.Value, getNowDate(new Date()), 0, "<");
    
}


function validatDate3(oSrc, args)// kiem tra validate trong tai lieu.
{
    
   var cur = document.getElementById('ctl00_ContentPlaceHolder1_textbox2').value;
   args.IsValid = checkYearOld(cur, args.Value, 1, "<");
         
}

function Check2Valid(source, args) {
            if (args.Value != "") {
                ValidatorEnable2(document.getElementById("<%= CustomValidator5.ClientID %>"), true);
                //ValidatorEnable2(document.getElementById("<%= CustomValidator3.ClientID %>"), true);
            }
        }

 function registerEnter()
         {
            if(document.getElementById("<%= btn_修正.ClientID %>") != null)
            {
                registerEnterEvent("enter", "<%= btn_修正.ClientID %>", 9);
            }
            else
            {
                registerEnterEvent("enter", "<%= btn_次登録.ClientID %>", 9);
            }
         }


function alert() 
     {
         var msg = $("#pCheckConfirm");
             $.blockUI({ message: msg, css: { width: '440px'} });
     }


function hidenDIV()
{
//RemoveInvalid(document.getElementById("<%= validateddl_企業.ClientID %>"));
    var check = document.getElementById('ctl00_ContentPlaceHolder1_hiden1').value;
    if(check == "0")
    {
        document.getElementById('div企業').style.display = '';
        document.getElementById('ctl00_ContentPlaceHolder1_ddl_企業').disabled = false;
        ValidatorEnable(document.getElementById("<%= validateddl_企業.ClientID %>"), true);
        
    }
    else
    {
        document.getElementById('div企業').style.display = 'none';
        document.getElementById('ctl00_ContentPlaceHolder1_ddl_企業').disabled = true;
        ValidatorEnable(document.getElementById("<%= validateddl_企業.ClientID %>"), false);
        RemoveInvalid(document.getElementById("<%= validateddl_企業.ClientID %>"));
    }
}


function CheckMode(oSrc, args)
{
    var check = document.getElementById('ctl00_ContentPlaceHolder1_hiden1').value;
     if(check != "0")
     {
        ValidatorEnable(document.getElementById("<%= validateddl_企業.ClientID %>"), false);
        RemoveInvalid(document.getElementById("<%= validateddl_企業.ClientID %>"));
     }
     else
     {
        var statusList = document.getElementById('<%=ddl_企業.ClientID %>').value;
        if(statusList == "-1")
        {
            args.IsValid = false;
        }
        else
        {
            args.IsValid = true;
        }
     }
}

function Disable()
{
//    disableControlOnLoadUpdatePanel("<%= UpdatePanel2.ClientID %>", "<%= btn_修正.ClientID %>");
//    disableControlOnLoadUpdatePanel("<%= UpdatePanel2.ClientID %>", "<%= btn_次登録.ClientID %>");
//    disableControlOnLoadUpdatePanel("<%= UpdatePanel2.ClientID %>", "<%= btDeleteYes.ClientID %>");
//    disableControlOnLoadUpdatePanel("<%= UpdatePanel2.ClientID %>", "<%= btDeleteNo.ClientID %>");
}


 $(document).ready(function() {
    Disable();
    hidenDIV();
    registerEnter();
    
    registerControlToValidation("validation");
    formatDate("css_text_calender", "/");
    //registerEnterEvent("enter", "<%= btn_次登録.ClientID %>", 9);
     
 
 });  

</script>

 <asp:UpdatePanel id="UpdatePanel2" runat="server">
      <%--<Triggers>
            <asp:AsyncPostBackTrigger ControlID="btn_修正" />
            <asp:AsyncPostBackTrigger ControlID="btn_次登録"/>
            <asp:AsyncPostBackTrigger ControlID="btDeleteYes"/>
            <asp:AsyncPostBackTrigger ControlID="btDeleteNo"/>
        </Triggers>--%> 
 <contenttemplate>          
 <div id="div_Body" runat="server" class="maindiv1">
    
    <div class="Header1">
        <span>＊: 必須項目</span></div>
        
    <div class="Header3">
        <span>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ※当監理団体以外に所属している全ての技能実習生の情報を登録してください。
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ※一人分を入力したら、次登録ボタンを押してください。
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ※全ての入力が完了したら、下表の入力内容を確認してください。
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
    </div>
    
    <asp:HiddenField ID = "hiden1" runat = "server" Value = "0" />
    
    <div class="detail-admin-row26" id="div企業">
        <span class="Tung-frmA_OrgTraineeInfoInput">企業 :</span><asp:DropDownList id="ddl_企業" runat="server"  Width="156px" 
            CssClass="Font_textbox validation enter" AutoPostBack = "true" 
            OnSelectedIndexChanged="ddl_企業_SelectedIndexChanged">
                 <asp:ListItem Value="-1" selected="True">[選択]</asp:ListItem>
                 
            </asp:DropDownList>
            <span class="required-field">&nbsp;*</span><asp:CustomValidator runat="server" ID="validateddl_企業"
            ControlToValidate="ddl_企業"
            Display="None" 
            SetFocusOnError="false"
            ValidateEmptyText = "true"
            ClientValidationFunction="CheckMode" 
            ErrorMessage="" /><ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender17"
            TargetControlID="validateddl_企業" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" /></div>
    
    
    <div class="detail-admin-row26">
        <span class="Tung-frmA_OrgTraineeInfoInput">氏名 :</span><asp:TextBox 
            ID="txt_姓" 
            runat="server"  
              
            Width="150px" 
            
            CssClass="Font_textbox enter validation"
            MaxLength="50"  ></asp:TextBox>
        
        <asp:TextBox 
            ID="txt_名" 
            runat="server" 
            Width="150px" 
            
           
            CssClass="Font_textbox enter validation"   
            MaxLength="50"></asp:TextBox>
        
        <span class="required-field">&nbsp;*</span><asp:RequiredFieldValidator 
            runat="server" 
            ID="validatetxt_姓"
            ControlToValidate="txt_姓"
            Display="None"
            
            ErrorMessage="" ></asp:RequiredFieldValidator> 
       
       <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="NReqE"
        TargetControlID="validatetxt_姓" HighlightCssClass = "invalid" Width="260px"
        CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png">
       </ajaxToolkit:ValidatorCalloutExtender>
       
       
        <asp:RequiredFieldValidator 
            runat="server" 
            ID="validatetxt_名"
            ControlToValidate="txt_名"
            Display="None"
            
            ErrorMessage="" ></asp:RequiredFieldValidator> 
       
       <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender1"
        TargetControlID="validatetxt_名" HighlightCssClass = "invalid" Width="260px"
        CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png">
       </ajaxToolkit:ValidatorCalloutExtender>
    
    </div>
         
    <div class="detail-admin-row26">
        <span class="Tung-frmA_OrgTraineeInfoInput">性別 :</span><asp:DropDownList id="ddl_性別" runat="server" Width="84px" CssClass="Font_textbox enter validation">
             <asp:ListItem Value="-1" selected="True">[選択]</asp:ListItem>
             <asp:ListItem Value="0">男</asp:ListItem>
             <asp:ListItem Value="1">女</asp:ListItem>      
        </asp:DropDownList>
           
        <span class="required-field">&nbsp;*</span><asp:RequiredFieldValidator runat="server" ID="validateddl_性別"
            ControlToValidate="ddl_性別"
            Display="None" 
            SetFocusOnError="false"
            InitialValue = "-1"
            ErrorMessage="" /><ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender2"
            TargetControlID="validateddl_性別" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" /></div>
         
    <div class="detail-admin-row26" >
         <span class="Tung-frmA_OrgTraineeInfoInput">生年月日:</span><asp:TextBox 
            ID="textbox1" 
            style="ime-mode:disabled" 
            runat="server" 
            Width="78px" 
            CssClass="Font_textbox css_text_calender enter validation"
            MaxLength="8"></asp:TextBox>
         <asp:ImageButton 
            ID="ImageButton2" 
            
            runat="server" 
            Height="16px"  
            CssClass="cal_Img"  
            ImageUrl="~/Images/calendar.jpg" 
            ValidationGroup="detailsform">
         </asp:ImageButton>
    
      <%--  <ajaxToolkit:CalendarExtender 
            ID="CalendarExtender1" 
            runat="server" 
            PopupButtonID="ImageButton2" 
            TargetControlID="textbox1" 
            Format="yyyy/MM/dd"> 
        </ajaxToolkit:CalendarExtender>--%><%--<ajaxToolkit:MaskedEditExtender
            ID = "MEECalender"
            TargetControlID ="textbox1" UserDateFormat="YearMonthDay" Century="1900" AutoComplete ="true" EnableViewState="true" ClearMaskOnLostFocus = "false"
            Mask="9999/99/99"
            MaskType="Number"
            runat="server">   
        </ajaxToolkit:MaskedEditExtender>--%><asp:RequiredFieldValidator runat="server" ID="validatetextbox1"
            ControlToValidate="textbox1"
            Display="None"
            
            ErrorMessage="" /><ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender7"
            TargetControlID="validatetextbox1" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" /><asp:CustomValidator ID= "CustomValidator4" runat="server" ErrorMessage="" 
                  ControlToValidate="textbox1"  ClientValidationFunction="isDate" 
                  Display ="None" ></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender32"
            TargetControlID="CustomValidator4" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" /> 
            
            
            
              <asp:CustomValidator ID= "CustomValidator1" runat="server" ErrorMessage="" 
                  ControlToValidate="textbox1"  ClientValidationFunction="validatDate2" 
                  Display ="None" ></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender33"
            TargetControlID="CustomValidator1" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
        

        <span class="required-field">*</span></div>
     
    <div class="detail-admin-row26">
        <span class="Tung-frmA_OrgTraineeInfoInput">国籍 :</span><asp:DropDownList
             id="ddl_国籍" 
             runat="server" 
             CssClass="Font_textbox enter validation"
             
             Width="84px">
                <asp:ListItem Value="-1" selected="True">[選択]</asp:ListItem>
        </asp:DropDownList>
        <span class="required-field">&nbsp;*</span><asp:RequiredFieldValidator runat="server" ID="validateddl_国籍"
            ControlToValidate="ddl_国籍"
            Display="None" 
            SetFocusOnError="false"
            InitialValue = "-1"
            ErrorMessage="" /><ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender3"
            TargetControlID="validateddl_国籍" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" /></div>
     
    <div class="detail-admin-row26">
        <span class="Tung-frmA_OrgTraineeInfoInput">出生地 :</span><asp:TextBox 
            ID="txt_出生地" 
            
            runat="server"  
            Width="311px" 
            CssClass="Font_textbox enter validation"
            MaxLength="500"></asp:TextBox>        
        <span class="required-field">*</span><asp:RequiredFieldValidator runat="server" ID="validatetxt_出生地"
            ControlToValidate="txt_出生地"
            Display="None"
            
            ErrorMessage="" /><ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender4"
            TargetControlID="validatetxt_出生地" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" /></div>
        
    <div class="detail-admin-row26" >
            
        <span class="Tung-frmA_OrgTraineeInfoInput">入国年月日:</span><asp:TextBox
            ID="textbox2"     
            style="ime-mode:disabled" 
            runat="server" 
            Width="78px" 
            CssClass="Font_textbox css_text_calender enter validation"
            MaxLength="10"></asp:TextBox>
        
        <asp:ImageButton 
            ID="ImageButton1" 
               
            runat="server" 
            Height="16px"  
            CssClass="cal_Img"  
            ImageUrl="~/Images/calendar.jpg" 
            ValidationGroup="detailsform" >
        </asp:ImageButton>
        
        <ajaxToolkit:CalendarExtender 
            ID="CalendarExtender2" 
            runat="server" 
            PopupButtonID="ImageButton1" 
            TargetControlID="textbox2" 
            Format="yyyy/MM/dd"> 
        </ajaxToolkit:CalendarExtender>
        
        <%--<ajaxToolkit:MaskedEditExtender
            id = "MaskedEditExtender1"
            TargetControlID ="textbox2" UserDateFormat="YearMonthDay" Century="1900" AutoComplete ="true" EnableViewState="true" ClearMaskOnLostFocus = "false"
            Mask="9999/99/99"
            MaskType="Number"
            runat="server">
        </ajaxToolkit:MaskedEditExtender>--%><asp:RequiredFieldValidator runat="server" ID="validatetextbox2"
            ControlToValidate="textbox2"
            Display="None"
            
            ErrorMessage="" /><ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender5"
            TargetControlID="validatetextbox2" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" /><asp:CustomValidator ID= "CustomValidator2" runat="server" ErrorMessage="" 
                  ControlToValidate="textbox2"  ClientValidationFunction="isDate" 
                  Display ="None" ></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender6"
            TargetControlID="CustomValidator2" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
             <asp:CustomValidator ID= "CustomValidator6" runat="server" ErrorMessage="" 
                  ControlToValidate="textbox2"  ClientValidationFunction="CheckDatenow" 
                  Display ="None" ></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender11"
            TargetControlID="CustomValidator6" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            
            <asp:CustomValidator ID="CustomValidator26" runat="server" ErrorMessage="CustomValidator"
                    Display="None" ValidateEmptyText="true" SetFocusOnError="false" ClientValidationFunction="Check2Valid"
                    ControlToValidate="textbox2"></asp:CustomValidator>
                <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender86"
                    TargetControlID="CustomValidator26" HighlightCssClass="invalid3" CssClass="CustomValidatorCalloutStyle" Width="260px"
                    WarningIconImageUrl="../Images/warning.png" />
            
                       
         
        <span class="required-field">*</span></div>
     
    <div class="detail-admin-row26" >
        <span class="Tung-frmA_OrgTraineeInfoInput">2号移行年月日:</span><asp:TextBox
            ID="textbox3" 
            style="ime-mode:disabled"
            runat="server" 
            Width="78px"
            CssClass="Font_textbox css_text_calender enter validation" 
            MaxLength = "10"></asp:TextBox>
        
        <asp:ImageButton 
            ID="ImageButton3" 
               
            runat="server" 
            Height="16px"  
            CssClass="cal_Img"  
            ImageUrl="~/Images/calendar.jpg" 
            ValidationGroup="detailsform">
        </asp:ImageButton>
        
        <ajaxToolkit:CalendarExtender 
            ID="CalendarExtender3" 
            runat="server" 
            PopupButtonID="ImageButton3" 
            TargetControlID="textbox3" 
            Format="yyyy/MM/dd"> 
        </ajaxToolkit:CalendarExtender>
        
       <%-- <ajaxToolkit:MaskedEditExtender
            id = "MEETexBox3"
            TargetControlID ="textbox3" UserDateFormat="YearMonthDay" Century="1900" AutoComplete ="true" EnableViewState="true" ClearMaskOnLostFocus = "false"
            Mask="9999/99/99"
            MaskType="Number"
            runat="server">
        </ajaxToolkit:MaskedEditExtender>--%><asp:RequiredFieldValidator runat="server" ID="validatetextbox3"
            ControlToValidate="textbox3"
            Display="None"
            
            ErrorMessage="" /><ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender8"
            TargetControlID="validatetextbox3" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" /><asp:CustomValidator ID= "CustomValidator3" runat="server" ErrorMessage="" 
                  ControlToValidate="textbox3"  ClientValidationFunction="isDate" 
                  Display ="None" ></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender9"
            TargetControlID="CustomValidator3" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            
            
             <asp:CustomValidator ID= "CustomValidator5" runat="server" ErrorMessage="" 
                  ControlToValidate="textbox3"  ClientValidationFunction="validatDate3" 
                  Display ="None" ></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender10"
            TargetControlID="CustomValidator5" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" /> 
            
          
             
            
            
        
        
       
        <span class="required-field">*</span></div>
    
<%--    <div style="width:100%;height:100%;background:red;">
    <asp:Panel ID="pCheckConfirm" runat="server"
    CssClass="modalPopup" Visible="false"
    HorizontalAlign="Center" BackColor="LightGoldenrodYellow">
    <p>現在システムに一つ同じ情報データが存在しました、登録してもよろしいでしょうか？<br /><br />
    <asp:Button ID="btDeleteYes" OnClick="btDelete_Click" Width="70" CausesValidation="false" runat="server"  Text="はい" />
    <asp:Button ID="btDeleteNo" OnClick="btDelete_Click" Width="70" CausesValidation="false" runat="server" Text="いいえ" />
    </p>
    </asp:Panel>
    <%--<asp:Label ID="label" runat="server"></asp:Label>--%>
   <%-- </div>--%>
    
    
    <%--<ajaxToolkit:ModalPopupExtender runat="server" ID="mpe"
                PopupControlID="pCheckConfirm"
                BackgroundCssClass="modalBackground"
                TargetControlID="btn_次登録"></ajaxToolkit:ModalPopupExtender>--%>
    
    
    <div class="detail-admin-label" style="margin-top:70px">
        <span class="detail-admin-label">&nbsp;</span>
    </div>
    <div class="detail-admin-row">
        <span class="detail-admin-label">&nbsp;</span>
        <asp:Button id="btn_次登録" runat="server" Text="次登録" CssClass="btn" OnClick="btn_次登録_Click" OnClientClick="javascript:focusToControlErr();"></asp:Button>
        <asp:Button ID ="btn_修正" runat ="server" Text="次登録完了" Visible ="false" CssClass="btn" OnClick = "btn_修正_Click" OnClientClick="javascript:focusToControlErr();"/> 
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button id="btn_リセット"  runat="server" Text="リセット" CssClass="btn" ValidationGroup="detailforms"  OnClick=" btn_リセット_Click"></asp:Button>
    </div>
    <br /> 
    <div class="headerLineAndGray">
         <span style="color:Gray">＊実習生一覧</span>
    </div>
     <div class="detail-admin-label" style="margin-top:20px">
        <span class="detail-admin-label">&nbsp;</span>
    </div>
     
    <asp:HiddenField id="hd_pageCount" runat="server"></asp:HiddenField> 
    
    <div style="MARGIN: 10px 50px 10px" class="detail-admin-row">
        
    <%--   <div class="gvHeader">
            <div class="gvHeaderItem1">氏名</div>
            <div class="gvHeaderItem2">性別</div>
            <div class="gvHeaderItem3">生年月日</div>
            <div class="gvHeaderItem4">国日</div>
            <div class="gvHeaderItem5">入国日</div>
            <div class="gvHeaderItem6">2号移行年月日</div>
       </div>--%>
       <%--<asp:Panel ID="pnlGridView" Height="150px" ScrollBars="Auto" runat="server">--%>
        
        <asp:GridView ID="grv" runat="server" AutoGenerateColumns="False" AllowPaging = "true" PageSize ="10" OnPageIndexChanging="grv_PageIndexChanging" Height="40px" Width="100%"  AllowSorting="true"  OnRowDataBound="grv_RowDataBound"  CssClass="mGrid" PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt"
 OnRowCommand="ItemView_RowCommand" >
            <Columns>
                
               <asp:TemplateField HeaderText="ID" SortExpression="ID" Visible="false">
                    <ItemStyle HorizontalAlign="Center"  />
                    <ItemTemplate>
                        <%#Eval("ID")%> 
                    </ItemTemplate>  
                </asp:TemplateField >
                
                <asp:TemplateField HeaderText="氏名"  >
                
                    <ItemStyle HorizontalAlign="Left" Width ="140px"/>
                    <ItemTemplate>
                   <%-- <div style="width:120px; overflow:hidden">--%>
                       
                       <asp:LinkButton ID ="lk1" runat ="server" CommandArgument='<%#Eval("ID") %>'  CausesValidation="false" CommandName = "LoadUpdate" ToolTip = '<%#Eval("姓").ToString()+" "+Eval("名").ToString()%>' ><%#ShowTextLength1(Eval("姓").ToString()+ " " +Eval("名").ToString())%>
                     
                     </asp:LinkButton>  
                       <%--</div>--%>
                    </ItemTemplate>  
                </asp:TemplateField >
                
                <asp:TemplateField HeaderText="性別" >
                 <ItemStyle HorizontalAlign="Center" Width ="40px" />
                 <ItemTemplate>
                    <%#ConvertString(Eval("性別").ToString())%> 
                 </ItemTemplate>
                </asp:TemplateField >
                
                <asp:BoundField HeaderText="生年月日" DataField="生年月日" DataFormatString="{0:yyyy年MM月dd日}" >
                <ItemStyle HorizontalAlign="Center" Width ="133px"/>
                </asp:BoundField >
                
                <asp:BoundField HeaderText="国籍" DataField="国籍名" >
                <ItemStyle HorizontalAlign="Center"  />
                </asp:BoundField >
                <asp:BoundField HeaderText="入国日" DataField="入国年月日" DataFormatString="{0:yyyy年MM月dd日}" >
                <ItemStyle HorizontalAlign="Center"  />
                </asp:BoundField >
                <asp:BoundField HeaderText="2号移行年月日" DataField="2号移行年月日" DataFormatString="{0:yyyy年MM月dd日}"  >
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField >
                <asp:BoundField  HeaderText ="" DataField = "IsInit" ShowHeader="false" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden"/>
            </Columns>
        </asp:GridView>
        <%--</asp:Panel>--%>
    
        <asp:GridView ID="grv1" runat="server" AutoGenerateColumns="False"  GridLines="None" Height="40px" Width="100%" PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt" CssClass="mGrid">
                <Columns>
                    <asp:HyperLinkField HeaderText="氏名" />
                    <asp:BoundField HeaderText="性別" />
                    <asp:BoundField HeaderText="生年月日" />
                    <asp:BoundField HeaderText="国籍" />
                    <asp:BoundField HeaderText="入国日" />
                     <asp:BoundField HeaderText="2号移行年月日" />
                   

                </Columns>
                
            </asp:GridView>
    
    
    </div>
     
    <div>&nbsp;</div>
         
    <div>
             
         
         </div>            
         
    <div class="Header3" style="margin-bottom:20px;">
              <span>
              ※修正があれば、修正する行をDouble clickして画面上で修正してください。 
               <br />
              ※全ての実習生を登録したら、登録完了ボタンを押してください。
               <br />
              ※登録を中止する場合はキャンセルボタンを押してください。
               <br />
              登録した実習生データは全て登録がキャンセルされます。</span>
             
            </div>
     
    <br style="clear:both" /> <br style="clear:both" />
            
    <div class="detail-admin-row">
             <div class="btn_back">
                <%--<asp:Button ID="btn_登録完了"  runat="server" Text="登録完了" CssClass="btn" ValidationGroup="detailform" OnClick="btn_登録完了_Click"  />--%>
                &nbsp;
             </div>
             <div class="btn_next">
                 <asp:Button ID="btn_キャンセル"  runat="server" Text="キャンセル" CssClass="btn" ValidationGroup="detailform" OnClick="btn_キャンセル_Click"  />
             </div>
         </div>
     
</div>


    <div id="pCheckConfirm" class="msg10" style="display:none;width:340px">
    <p>現在システムに一つ同じ情報データが存在しました、登録してもよろしいでしょうか？<br /><br />
    <input type="button" style="width:70px" value="はい" onclick="javascript:$('#<%= btDeleteYes.ClientID %>').click()" />
    <input type="button" style="width:70px" value="いいえ" onclick="javascript:$('#<%= btDeleteNo.ClientID %>').click()" />

    </p>
    </div>
    <div class="msg10" style="display:none">
    <asp:Button ID="btDeleteYes" OnClick="btDelete_Click" Width="70" CausesValidation="false" runat="server"  Text="はい" />
    <asp:Button ID="btDeleteNo" OnClick="btDelete_Click" Width="70" CausesValidation="false" runat="server" Text="いいえ" />
    </div>
    
  

   </contenttemplate>
    </asp:UpdatePanel>   
<br style="clear:both" /> <br style="clear:both" />
</asp:Content>

